package vinux.web.common.es;

import org.springframework.beans.factory.InitializingBean;
import org.springframework.beans.factory.annotation.Autowired;

import vinux.service.service.tchange.service.TChangeService;
import vinux.service.service.userbaseinfo.service.UserBaseInfoService;

public class UtilTest implements InitializingBean{

	@Autowired
	TChangeService tchangeService;
	
	@Autowired
	UserBaseInfoService userService;
	
	@Override
	public void afterPropertiesSet() throws Exception {
			SyncWorker worker = new SyncWorker(userService,tchangeService);
			new Thread(worker).start();
	}

}
